package com.teckteam.ptvsystem.view;

import java.awt.GridLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;

import com.teckteam.ptvsystem.model.ResultNode;

/**
 * Results row representation as a JPanel
 */
public class ResultRowPanel extends JPanel
{
   public ResultRowPanel(ResultNode resultNode)
   {
      String details[] = resultNode.getDestinationDetails();
      setLayout(new GridLayout(1,details.length));
      
      for(int i=0; i<details.length; i++)
         add(new JLabel(details[i]), i);
      
   }
}
